<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>ming_mockServer</title>
    <style>
        body,html{
            margin:0;
            padding:0;
            height:500000px;
        }
    </style>
    <script src="https://cdn.bootcss.com/react/16.8.0/umd/react.development.js"></script>
    <script src="https://cdn.bootcss.com/react-dom/16.8.0/umd/react-dom.development.js"></script>
    <script src="https://cdnjs.cloudflare.com/ajax/libs/moment.js/2.20.1/moment.min.js"></script>
    <script src="https://cdn.bootcss.com/babel-standalone/6.26.0/babel.min.js"></script>
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/antd/3.0.2/antd.css"/>
    <link rel="stylesheet" href="./pages/resource/index.css"/>
    <script src="https://cdnjs.cloudflare.com/ajax/libs/antd/3.0.2/antd.js"></script>
    <script src="https://unpkg.com/redux@latest/dist/redux.min.js"></script>
    <script src="https://cdn.bootcss.com/jquery/3.3.1/jquery.js"></script>
    <script src="https://cdn.bootcss.com/react-router-dom/4.4.0-beta.6/react-router-dom.js"></script>
    <script src="https://mucfpga.github.io/codeEdit/min/vs/loader.js"></script>
    <script src="./lib/M_mock.js"></script>
    <script src="./pages/resource/server.js"></script>
    <script src="./pages/resource/model.js"></script>
</head>

<body>

<div id="root"></div>
<script src="./pages/resource/CollectionCreateForm.jsx" type="text/babel"></script>
<script src="./pages/resource/index.jsx" type="text/babel"></script>
<script src="./pages/resource/text.jsx" type="text/babel"></script>
<script src="./App.jsx" type="text/babel"></script>
</div>

<script>
M.Db().doSql("select count(1) c from resource").catch(d=>{
    M.Db().doSql(`
        CREATE TABLE resource (
             id INTEGER NOT NULL, 
             name varchar(200) DEFAULT NULL,
             res_url varchar (200) DEFAULT NULL, 
             img_url varchar (200) DEFAULT NULL, 
             parent_id INTEGER DEFAULT  NULL,
             description varchar(200) DEFAULT  NULL, 
             payload text  DEFAULT  NULL,
             gmt_create varchar(200) DEFAULT  NULL, 
             gmt_modified varchar(200) DEFAULT  NULL, 
             status varchar(200) DEFAULT  NULL, 
             PRIMARY KEY (id));
           `).then(d=>{M.Db().doSql(`insert into resource(name,res_url,img_url,description) values ('公众号假签名校验','/minglie/wechat','dddd','ddddddd');`)})
});
</script>


<script type="text/babel">
    ReactDOM.render(
            <div>
                <App/>
            </div>
        ,
        document.getElementById('root')
    );
</script>



</body>
</html>